(function($){
$(document).ready(function($){
var thisIsSomeBreakpoint=''
$(sticky_anything_engage.element).stickThis({
top:sticky_anything_engage.topspace,
minscreenwidth:sticky_anything_engage.minscreenwidth,
maxscreenwidth:sticky_anything_engage.maxscreenwidth,
zindex:sticky_anything_engage.zindex,
legacymode:sticky_anything_engage.legacymode,
dynamicmode:sticky_anything_engage.dynamicmode,
debugmode:sticky_anything_engage.debugmode,
pushup:sticky_anything_engage.pushup,
adminbar:sticky_anything_engage.adminbar
});
});
}(jQuery));
(function ($){
"use strict";
$.fn.topLang=function (){
return this.each(function (){
var langList=$(this).find('.top-lang-list'),
currentLang=$(this).find('.top-lang-current'),
that=this,
langListHeight=langList.height();
langList.css({height: 0, display: 'none'});
currentLang.click(function(){
currentLang.addClass('active');
langList.css({display: 'block'});
langList.animate({height: langListHeight}, 200);
});
$(document).mouseup(function (e){
if($(that).has(e.target).length===0){
langList.animate({height: 0}, 200, function(){
langList.css({display: 'none'});
currentLang.removeClass('active');
});
}});
});
};})(jQuery);
(function($){
"use strict";
$.fn.hoverIntent=function(handlerIn,handlerOut,selector){
var cfg={
interval: 100,
sensitivity: 7,
timeout: 0
};
if(typeof handlerIn==="object"){
cfg=$.extend(cfg, handlerIn);
}else if($.isFunction(handlerOut)){
cfg=$.extend(cfg, { over: handlerIn, out: handlerOut, selector: selector });
}else{
cfg=$.extend(cfg, { over: handlerIn, out: handlerIn, selector: handlerOut });
}
var cX, cY, pX, pY;
var track=function(ev){
cX=ev.pageX;
cY=ev.pageY;
};
var compare=function(ev,ob){
ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);
if(( Math.abs(pX-cX) + Math.abs(pY-cY)) < cfg.sensitivity){
$(ob).off("mousemove.hoverIntent",track);
ob.hoverIntent_s=1;
return cfg.over.apply(ob,[ev]);
}else{
pX=cX; pY=cY;
ob.hoverIntent_t=setTimeout(function(){compare(ev, ob);} , cfg.interval);
}};
var delay=function(ev,ob){
ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);
ob.hoverIntent_s=0;
return cfg.out.apply(ob,[ev]);
};
var handleHover=function(e){
var ev=jQuery.extend({},e);
var ob=this;
if(ob.hoverIntent_t){ ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t); }
if(e.type=="mouseenter"){
pX=ev.pageX; pY=ev.pageY;
$(ob).on("mousemove.hoverIntent",track);
if(ob.hoverIntent_s!=1){ ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);} , cfg.interval);}}else{
$(ob).off("mousemove.hoverIntent",track);
if(ob.hoverIntent_s==1){ ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);} , cfg.timeout);}}
};
return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector);
};})(jQuery);
jQuery.easing['jswing']=jQuery.easing['swing'];
jQuery.extend(jQuery.easing, {
def: 'easeOutQuad',
swing: function (x, t, b, c, d){
return jQuery.easing[jQuery.easing.def](x, t, b, c, d)
},
easeInQuad: function (x, t, b, c, d){
return c * (t /=d) * t + b
},
easeOutQuad: function (x, t, b, c, d){
return -c * (t /=d) * (t - 2) + b
},
easeInOutQuad: function (x, t, b, c, d){
if((t /=d / 2) < 1) return c / 2 * t * t + b;
return -c / 2 * ((--t) * (t - 2) - 1) + b
},
easeInCubic: function (x, t, b, c, d){
return c * (t /=d) * t * t + b
},
easeOutCubic: function (x, t, b, c, d){
return c * ((t=t / d - 1) * t * t + 1) + b
},
easeInOutCubic: function (x, t, b, c, d){
if((t /=d / 2) < 1) return c / 2 * t * t * t + b;
return c / 2 * ((t -=2) * t * t + 2) + b
},
easeInQuart: function (x, t, b, c, d){
return c * (t /=d) * t * t * t + b
},
easeOutQuart: function (x, t, b, c, d){
return -c * ((t=t / d - 1) * t * t * t - 1) + b
},
easeInOutQuart: function (x, t, b, c, d){
if((t /=d / 2) < 1) return c / 2 * t * t * t * t + b;
return -c / 2 * ((t -=2) * t * t * t - 2) + b
},
easeInQuint: function (x, t, b, c, d){
return c * (t /=d) * t * t * t * t + b
},
easeOutQuint: function (x, t, b, c, d){
return c * ((t=t / d - 1) * t * t * t * t + 1) + b
},
easeInOutQuint: function (x, t, b, c, d){
if((t /=d / 2) < 1) return c / 2 * t * t * t * t * t + b;
return c / 2 * ((t -=2) * t * t * t * t + 2) + b
},
easeInSine: function (x, t, b, c, d){
return -c * Math.cos(t / d * (Math.PI / 2)) + c + b
},
easeOutSine: function (x, t, b, c, d){
return c * Math.sin(t / d * (Math.PI / 2)) + b
},
easeInOutSine: function (x, t, b, c, d){
return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b
},
easeInExpo: function (x, t, b, c, d){
return (t==0) ? b:c * Math.pow(2, 10 * (t / d - 1)) + b
},
easeOutExpo: function (x, t, b, c, d){
return (t==d) ? b + c:c * (-Math.pow(2, -10 * t / d) + 1) + b
},
easeInOutExpo: function (x, t, b, c, d){
if(t==0) return b;
if(t==d) return b + c;
if((t /=d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b
},
easeInCirc: function (x, t, b, c, d){
return -c * (Math.sqrt(1 - (t /=d) * t) - 1) + b
},
easeOutCirc: function (x, t, b, c, d){
return c * Math.sqrt(1 - (t=t / d - 1) * t) + b
},
easeInOutCirc: function (x, t, b, c, d){
if((t /=d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
return c / 2 * (Math.sqrt(1 - (t -=2) * t) + 1) + b
},
easeInElastic: function (x, t, b, c, d){
var s=1.70158;
var p=0;
var a=c;
if(t==0) return b;
if((t /=d)==1) return b + c;
if(!p) p=d * .3;
if(a < Math.abs(c)){
a=c;
var s=p / 4
} else var s=p / (2 * Math.PI) * Math.asin(c / a);
return -(a * Math.pow(2, 10 * (t -=1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b
},
easeOutElastic: function (x, t, b, c, d){
var s=1.70158;
var p=0;
var a=c;
if(t==0) return b;
if((t /=d)==1) return b + c;
if(!p) p=d * .3;
if(a < Math.abs(c)){
a=c;
var s=p / 4
} else var s=p / (2 * Math.PI) * Math.asin(c / a);
return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b
},
easeInOutElastic: function (x, t, b, c, d){
var s=1.70158;
var p=0;
var a=c;
if(t==0) return b;
if((t /=d / 2)==2) return b + c;
if(!p) p=d * (.3 * 1.5);
if(a < Math.abs(c)){
a=c;
var s=p / 4
} else var s=p / (2 * Math.PI) * Math.asin(c / a); if(t < 1) return -.5 * (a * Math.pow(2, 10 * (t -=1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
return a * Math.pow(2, -10 * (t -=1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b
},
easeInBack: function (x, t, b, c, d, s){
if(s==undefined) s=1.70158;
return c * (t /=d) * t * ((s + 1) * t - s) + b
},
easeOutBack: function (x, t, b, c, d, s){
if(s==undefined) s=1.70158;
return c * ((t=t / d - 1) * t * ((s + 1) * t + s) + 1) + b
},
easeInOutBack: function (x, t, b, c, d, s){
if(s==undefined) s=1.70158;
if((t /=d / 2) < 1) return c / 2 * (t * t * (((s *=(1.525)) + 1) * t - s)) + b;
return c / 2 * ((t -=2) * t * (((s *=(1.525)) + 1) * t + s) + 2) + b
},
easeInBounce: function (x, t, b, c, d){
return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b
},
easeOutBounce: function (x, t, b, c, d){
if((t /=d) < (1 / 2.75)){
return c * (7.5625 * t * t) + b
}else if(t < (2 / 2.75)){
return c * (7.5625 * (t -=(1.5 / 2.75)) * t + .75) + b
}else if(t < (2.5 / 2.75)){
return c * (7.5625 * (t -=(2.25 / 2.75)) * t + .9375) + b
}else{
return c * (7.5625 * (t -=(2.625 / 2.75)) * t + .984375) + b
}},
easeInOutBounce: function (x, t, b, c, d){
if(t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b;
return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b
}});
(function (e){
"use strict";
e.fn.superfish=function (t){
var n=e.fn.superfish,
r=n.c,
i=e([' '].join("")),
s=function (){
var t=e(this),
n=u(t);
clearTimeout(n.sfTimer);
t.showSuperfishUl().siblings().hideSuperfishUl()
}, o=function (){
var t=e(this),
r=u(t),
i=n.op;
clearTimeout(r.sfTimer);
r.sfTimer=setTimeout(function (){
i.retainPath=e.inArray(t[0], i.$path) > -1;
t.hideSuperfishUl();
if(i.$path.length&&t.parents(["li.", i.hoverClass].join("")).length < 1){
s.call(i.$path)
}}, i.delay)
}, u=function (e){
var t=e.parents(["ul.", r.menuClass, ":first"].join(""))[0];
n.op=n.o[t.serial];
return t
}, a=function (e){
e.addClass(r.anchorClass).append(i.clone())
};
return this.each(function (){
var i=this.serial=n.o.length;
var u=e.extend({}, n.defaults, t);
u.$path=e("li." + u.pathClass, this).slice(0, u.pathLevels).each(function (){
e(this).addClass([u.hoverClass, r.bcClass].join(" ")).filter("li:has(ul)").removeClass(u.pathClass)
});
n.o[i]=n.op=u;
e("li:has(ul)", this)[e.fn.hoverIntent&&!u.disableHI ? "hoverIntent":"hover"](s, o).each(function (){
if(u.autoArrows) a(e(">a:first-child", this))
}).not("." + r.bcClass).hideSuperfishUl();
var f=e("a", this);
f.each(function (e){
var t=f.eq(e).parents("li");
f.eq(e).focus(function (){
s.call(t)
}).blur(function (){
o.call(t)
})
});
u.onInit.call(this)
}).each(function (){
var t=[r.menuClass];
if(n.op.dropShadows&&!(e.browser.msie&&e.browser.version < 7)) t.push(r.shadowClass);
e(this).addClass(t.join(" "))
})
};
var t=e.fn.superfish;
t.o=[];
t.op={};
t.IE7fix=function (){
var n=t.op;
if(e.browser.msie&&e.browser.version > 6&&n.dropShadows&&n.animation.opacity!=undefined) this.toggleClass(t.c.shadowClass + "-off")
};
t.c={
bcClass: "sf-breadcrumb",
menuClass: "sf-js-enabled",
anchorClass: "sf-with-ul",
arrowClass: "sf-sub-indicator",
shadowClass: "sf-shadow"
};
t.defaults={
hoverClass: "sfHover",
pathClass: "overideThisToUse",
pathLevels: 1,
delay: 800,
animation: {
opacity: "show"
},
speed: "normal",
autoArrows: true,
dropShadows: true,
disableHI: false,
onInit: function (){},
onBeforeShow: function (){},
onShow: function (){},
onHide: function (){}};
e.fn.extend({
hideSuperfishUl: function (){
var n=t.op,
r=n.retainPath===true ? n.$path:"";
n.retainPath=false;
var i=e(["li.", n.hoverClass].join(""), this).add(this).not(r).removeClass(n.hoverClass).find(">ul").hide().css("visibility", "hidden");
n.onHide.call(i);
return this
},
showSuperfishUl: function (){
var e=t.op,
n=t.c.shadowClass + "-off",
r=this.addClass(e.hoverClass).find(">ul:hidden").css("visibility", "visible");
t.IE7fix.call(r);
e.onBeforeShow.call(r);
r.animate(e.animation, e.speed, function (){
t.IE7fix.call(r);
e.onShow.call(r)
});
return this
}})
})(jQuery);
(function (e){
"use strict";
function t(e){
if(e.attr("title")||typeof e.attr("original-title")!="string"){
e.attr("original-title", e.attr("title")||"").removeAttr("title")
}}
function n(n, r){
this.$element=e(n);
this.options=r;
this.enabled=true;
t(this.$element)
}
n.prototype={
show: function (){
var t=this.getTitle();
if(t&&this.enabled){
var n=this.tip();
n.find(".tipsy-inner")[this.options.html ? "html":"text"](t);
n[0].className="tipsy";
n.remove().css({
top: 0,
left: 0,
visibility: "hidden",
display: "block"
}).appendTo(document.body);
var r=e.extend({}, this.$element.offset(), {
width: this.$element[0].offsetWidth,
height: this.$element[0].offsetHeight
});
var i=n[0].offsetWidth,
s=n[0].offsetHeight;
var o=typeof this.options.gravity=="function" ? this.options.gravity.call(this.$element[0]):this.options.gravity;
var u;
switch (o.charAt(0)){
case "n":
u={
top: r.top + r.height + this.options.offset,
left: r.left + r.width / 2 - i / 2
};
break;
case "s":
u={
top: r.top - s - this.options.offset,
left: r.left + r.width / 2 - i / 2
};
break;
case "e":
u={
top: r.top + r.height / 2 - s / 2,
left: r.left - i - this.options.offset
};
break;
case "w":
u={
top: r.top + r.height / 2 - s / 2,
left: r.left + r.width + this.options.offset
};
break
}
if(o.length==2){
if(o.charAt(1)=="w"){
u.left=r.left + r.width / 2 - 15
}else{
u.left=r.left + r.width / 2 - i + 15
}}
n.css(u).addClass("tipsy-" + o);
if(this.options.fade){
n.stop().css({
opacity: 0,
display: "block",
visibility: "visible"
}).animate({
opacity: this.options.opacity
})
}else{
n.css({
visibility: "visible",
opacity: this.options.opacity
})
}}
},
hide: function (){
if(this.options.fade){
this.tip().stop().fadeOut(function (){
e(this).remove()
})
}else{
this.tip().remove()
}},
getTitle: function (){
var e, n=this.$element,
r=this.options;
t(n);
var e, r=this.options;
if(typeof r.title=="string"){
e=n.attr(r.title=="title" ? "original-title":r.title)
}else if(typeof r.title=="function"){
e=r.title.call(n[0])
}
e=("" + e).replace(/(^\s*|\s*$)/, "");
return e||r.fallback
},
tip: function (){
if(!this.$tip){
this.$tip=e('
').html('')
}
return this.$tip
},
validate: function (){
if(!this.$element[0].parentNode){
this.hide();
this.$element=null;
this.options=null
}},
enable: function (){
this.enabled=true
},
disable: function (){
this.enabled=false
},
toggleEnabled: function (){
this.enabled = !this.enabled
}};
e.fn.tipsy=function (t){
function r(r){
var i=e.data(r, "tipsy");
if(!i){
i=new n(r, e.fn.tipsy.elementOptions(r, t));
e.data(r, "tipsy", i)
}
return i
}
function i(){
var e=r(this);
e.hoverState="in";
if(t.delayIn==0){
e.show()
}else{
setTimeout(function (){
if(e.hoverState=="in") e.show()
}, t.delayIn)
}}
function s(){
var e=r(this);
e.hoverState="out";
if(t.delayOut==0){
e.hide()
}else{
setTimeout(function (){
if(e.hoverState=="out") e.hide()
}, t.delayOut)
}}
if(t===true){
return this.data("tipsy")
}else if(typeof t=="string"){
return this.data("tipsy")[t]()
}
t=e.extend({}, e.fn.tipsy.defaults, t);
if(!t.live) this.each(function (){
r(this)
});
if(t.trigger!="manual"){
var o=t.live ? "live":"bind",
u=t.trigger=="hover" ? "mouseenter":"focus",
a=t.trigger=="hover" ? "mouseleave":"blur";
this[o](u, i)[o](a, s)
}
return this
};
e.fn.tipsy.defaults={
delayIn: 0,
delayOut: 0,
fade: false,
fallback: "",
gravity: "n",
html: false,
live: false,
offset: 0,
opacity: 1,
title: "title",
trigger: "hover"
};
e.fn.tipsy.elementOptions=function (t, n){
return e.metadata ? e.extend({}, n, e(t).metadata()):n
};
e.fn.tipsy.autoNS=function (){
return e(this).offset().top > e(document).scrollTop() + e(window).height() / 2 ? "s":"n"
};
e.fn.tipsy.autoWE=function (){
return e(this).offset().left > e(document).scrollLeft() + e(window).width() / 2 ? "e":"w"
}})(jQuery);
(function (){
function c(){
var e=false;
if(e){
N("keydown", y)
}
if(t.keyboardSupport&&!e){
T("keydown", y)
}}
function h(){
if(!document.body) return;
var e=document.body;
var i=document.documentElement;
var a=window.innerHeight;
var f=e.scrollHeight;
o=document.compatMode.indexOf("CSS") >=0 ? i:e;
u=e;
c();
s=true;
if(top!=self){
r=true
}else if(f > a&&(e.offsetHeight <=a||i.offsetHeight <=a)){
i.style.height="auto";
if(o.offsetHeight <=a){
var l=document.createElement("div");
l.style.clear="both";
e.appendChild(l)
}}
if(!t.fixedBackground&&!n){
e.style.backgroundAttachment="scroll";
i.style.backgroundAttachment="scroll"
}}
function m(e, n, r, i){
i||(i=1e3);
k(n, r);
if(t.accelerationMax!=1){
var s=+(new Date);
var o=s - v;
if(o < t.accelerationDelta){
var u=(1 + 30 / o) / 2;
if(u > 1){
u=Math.min(u, t.accelerationMax);
n *=u;
r *=u
}}
v=+(new Date)
}
p.push({
x: n,
y: r,
lastX: n < 0 ? .99:-.99,
lastY: r < 0 ? .99:-.99,
start: +(new Date)
});
if(d){
return
}
var a=e===document.body;
var f=function (s){
var o=+(new Date);
var u=0;
var l=0;
for (var c=0; c < p.length; c++){
var h=p[c];
var v=o - h.start;
var m=v >=t.animationTime;
var g=m ? 1:v / t.animationTime;
if(t.pulseAlgorithm){
g=D(g)
}
var y=h.x * g - h.lastX >> 0;
var b=h.y * g - h.lastY >> 0;
u +=y;
l +=b;
h.lastX +=y;
h.lastY +=b;
if(m){
p.splice(c, 1);
c--
}}
if(a){
window.scrollBy(u, l)
}else{
if(u) e.scrollLeft +=u;
if(l) e.scrollTop +=l
} if(!n&&!r){
p=[]
}
if(p.length){
M(f, e, i / t.frameRate + 1)
}else{
d=false
}};
M(f, e, 0);
d=true
}
function g(e){
if(!s){
h()
}
var n=e.target;
var r=x(n);
if(!r||e.defaultPrevented||C(u, "embed")||C(n, "embed")&&/\.pdf/i.test(n.src)){
return true
}
var i=e.wheelDeltaX||0;
var o=e.wheelDeltaY||0;
if(!i&&!o){
o=e.wheelDelta||0
}
if(!t.touchpadSupport&&A(o)){
return true
}
if(Math.abs(i) > 1.2){
i *=t.stepSize / 120
}
if(Math.abs(o) > 1.2){
o *=t.stepSize / 120
}
m(r, -i, -o);
e.preventDefault()
}
function y(e){
var n=e.target;
var r=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==l.spacebar;
if(/input|textarea|select|embed/i.test(n.nodeName)||n.isContentEditable||e.defaultPrevented||r){
return true
}
if(C(n, "button")&&e.keyCode===l.spacebar){
return true
}
var i, s=0,
o=0;
var a=x(u);
var f=a.clientHeight;
if(a==document.body){
f=window.innerHeight
}
switch (e.keyCode){
case l.up:
o=-t.arrowScroll;
break;
case l.down:
o=t.arrowScroll;
break;
case l.spacebar:
i=e.shiftKey ? 1:-1;
o=-i * f * .9;
break;
case l.pageup:
o=-f * .9;
break;
case l.pagedown:
o=f * .9;
break;
case l.home:
o=-a.scrollTop;
break;
case l.end:
var c=a.scrollHeight - a.scrollTop - f;
o=c > 0 ? c + 10:0;
break;
case l.left:
s=-t.arrowScroll;
break;
case l.right:
s=t.arrowScroll;
break;
default:
return true
}
m(a, s, o);
e.preventDefault()
}
function b(e){
u=e.target
}
function S(e, t){
for (var n=e.length; n--;) w[E(e[n])]=t;
return t
}
function x(e){
var t=[];
var n=o.scrollHeight;
do {
var i=w[E(e)];
if(i){
return S(t, i)
}
t.push(e);
if(n===e.scrollHeight){
if(!r||o.clientHeight + 10 < n){
return S(t, document.body)
}}else if(e.clientHeight + 10 < e.scrollHeight){
overflow=getComputedStyle(e, "").getPropertyValue("overflow-y");
if(overflow==="scroll"||overflow==="auto"){
return S(t, e)
}}
} while (e=e.parentNode)
}
function T(e, t, n){
window.addEventListener(e, t, n||false)
}
function N(e, t, n){
window.removeEventListener(e, t, n||false)
}
function C(e, t){
return (e.nodeName||"").toLowerCase()===t.toLowerCase()
}
function k(e, t){
e=e > 0 ? 1:-1;
t=t > 0 ? 1:-1;
if(i.x!==e||i.y!==t){
i.x=e;
i.y=t;
p=[];
v=0
}}
function A(e){
if(!e) return;
e=Math.abs(e);
f.push(e);
f.shift();
clearTimeout(L);
var t=f[0]==f[1]&&f[1]==f[2];
var n=O(f[0], 120)&&O(f[1], 120)&&O(f[2], 120);
return !(t||n)
}
function O(e, t){
return Math.floor(e / t)==e / t
}
function _(e){
var n, r, i;
e=e * t.pulseScale;
if(e < 1){
n=e - (1 - Math.exp(-e))
}else{
r=Math.exp(-1);
e -=1;
i=1 - Math.exp(-e);
n=r + i * (1 - r)
}
return n * t.pulseNormalize
}
function D(e){
if(e >=1) return 1;
if(e <=0) return 0;
if(t.pulseNormalize==1){
t.pulseNormalize /=_(1)
}
return _(e)
}
var e={
frameRate: 150,
animationTime: 400,
stepSize: 120,
pulseAlgorithm: true,
pulseScale: 8,
pulseNormalize: 1,
accelerationDelta: 20,
accelerationMax: 1,
keyboardSupport: true,
arrowScroll: 50,
touchpadSupport: true,
fixedBackground: true,
excluded: ""
};
var t=e;
var n=false;
var r=false;
var i={
x: 0,
y: 0
};
var s=false;
var o=document.documentElement;
var u;
var a;
var f=[120, 120, 120];
var l={
left: 37,
up: 38,
right: 39,
down: 40,
spacebar: 32,
pageup: 33,
pagedown: 34,
end: 35,
home: 36
};
var t=e;
var p=[];
var d=false;
var v=+(new Date);
var w={};
setInterval(function (){
w={}}, 10 * 1e3);
var E=function (){
var e=0;
return function (t){
return t.uniqueID||(t.uniqueID=e++)
}}();
var L;
var M=function (){
return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function (e, t, n){
window.setTimeout(e, n||1e3 / 60)
}}();
var P=/chrome/i.test(window.navigator.userAgent);
var H="onmousewheel" in document;
if(H&&P){
T("mousedown", b);
T("mousewheel", g);
T("load", h)
}})();
;(function($){
'use strict';
$.fn.fitVids=function(options){
var settings={
customSelector: null,
ignore: null
};
if(!document.getElementById('fit-vids-style')){
var head=document.head||document.getElementsByTagName('head')[0];
var css='.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
var div=document.createElement("div");
div.innerHTML='x
';
head.appendChild(div.childNodes[1]);
}
if(options){
$.extend(settings, options);
}
return this.each(function(){
var selectors=[
'iframe[src*="player.vimeo.com"]',
'iframe[src*="youtube.com"]',
'iframe[src*="youtube-nocookie.com"]',
'iframe[src*="kickstarter.com"][src*="video.html"]',
'object',
'embed'
];
if(settings.customSelector){
selectors.push(settings.customSelector);
}
var ignoreList='.fitvidsignore';
if(settings.ignore){
ignoreList=ignoreList + ', ' + settings.ignore;
}
var $allVideos=$(this).find(selectors.join(','));
$allVideos=$allVideos.not('object object');
$allVideos=$allVideos.not(ignoreList);
$allVideos.each(function(count){
var $this=$(this);
if($this.parents(ignoreList).length > 0){
return;
}
if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){ return; }
if((!$this.css('height')&&!$this.css('width'))&&(isNaN($this.attr('height'))||isNaN($this.attr('width')))){
$this.attr('height', 9);
$this.attr('width', 16);
}
var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'), 10)))) ? parseInt($this.attr('height'), 10):$this.height(),
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10):$this.width(),
aspectRatio=height / width;
if(!$this.attr('id')){
var videoID='fitvid' + count;
$this.attr('id', videoID);
}
$this.wrap('').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
$this.removeAttr('height').removeAttr('width');
});
});
};})(window.jQuery||window.Zepto);
(function(){"use strict"; var t=[].indexOf||function(t){for(var e=0,n=this.length;e=0;s={horizontal:{},vertical:{}};f=1;c={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};this.element[u]=this.id;c[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||a)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(a&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete c[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=this.element[w])!=null?o:[];i.push(this.id);this.element[w]=i}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=t[w];if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=c[i[0][u]];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke.call(this,"disable")},enable:function(){return d._invoke.call(this,"enable")},destroy:function(){return d._invoke.call(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=c[n(t)[0][u]];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this);
!function(e){function t(){var e=location.href;return hashtag=-1!==e.indexOf("#prettyPhoto")?decodeURI(e.substring(e.indexOf("#prettyPhoto")+1,e.length)):!1,hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function i(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function p(){-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto")}function o(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+e+"=([^]*)",p=new RegExp(i),o=p.exec(t);return null==o?"":o[1]}e.prettyPhoto={version:"3.1.6"},e.fn.prettyPhoto=function(a){function s(){e(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(I/2-f.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:f.contentHeight,width:f.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:j/2-f.containerWidth/2<0?0:j/2-f.containerWidth/2,width:f.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(f.height).width(f.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==h(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(f.resized?e("a.pp_expand,a.pp_contract").show():e("a.pp_expand").hide()),!settings.autoplay_slideshow||P||v||e.prettyPhoto.startSlideshow(),settings.changepicturecallback(),v=!0}),m(),a.ajaxcallback()}function n(t){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){e(".pp_loaderIcon").show(),t()})}function r(t){t>1?e(".pp_nav").show():e(".pp_nav").hide()}function l(e,t){if(resized=!1,d(e,t),imageWidth=e,imageHeight=t,(k>j||b>I)&&doresize&&settings.allow_resize&&!$){for(resized=!0,fitting=!1;!fitting;)k>j?(imageWidth=j-200,imageHeight=t/e*imageWidth):b>I?(imageHeight=I-200,imageWidth=e/t*imageHeight):fitting=!0,b=imageHeight,k=imageWidth;(k>j||b>I)&&l(k,b),d(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(b),containerWidth:Math.floor(k)+2*settings.horizontal_padding,contentHeight:Math.floor(y),contentWidth:Math.floor(w),resized:resized}}function d(t,i){t=parseFloat(t),i=parseFloat(i),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(t),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(t).appendTo(e("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(t),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),y=i+detailsHeight,w=t,b=y+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),k=t}function h(e){return e.match(/youtube\.com\/watch/i)||e.match(/youtu\.be/i)?"youtube":e.match(/vimeo\.com/i)?"vimeo":e.match(/\b.mov\b/i)?"quicktime":e.match(/\b.swf\b/i)?"flash":e.match(/\biframe=true\b/i)?"iframe":e.match(/\bajax=true\b/i)?"ajax":e.match(/\bcustom=true\b/i)?"custom":"#"==e.substr(0,1)?"inline":"image"}function c(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=_(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=I/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>I)return;$pp_pic_holder.css({top:projectedTop,left:j/2+scroll_pos.scrollLeft-contentwidth/2})}}function _(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function g(){I=e(window).height(),j=e(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(e(document).height()).width(j)}function m(){isSet&&settings.overlay_gallery&&"image"==h(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((f.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return e.prettyPhoto.changeGalleryPage("next"),e.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return e.prettyPhoto.changeGalleryPage("previous"),e.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(t){e(this).find("a").click(function(){return e.prettyPhoto.changePage(t),e.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return e.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",function(){settings.modal||e.prettyPhoto.close()}),e("a.pp_close").bind("click",function(){return e.prettyPhoto.close(),!1}),settings.allow_expand&&e("a.pp_expand").bind("click",function(){return e(this).hasClass("pp_expand")?(e(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(e(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),n(function(){e.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return e.prettyPhoto.changePage("previous"),e.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return e.prettyPhoto.changePage("next"),e.prettyPhoto.stopSlideshow(),!1}),c()}a=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:' ',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'{content}
',custom_markup:"",social_tools:''},a);var f,v,y,w,b,k,P,x=this,$=!1,I=e(window).height(),j=e(window).width();return doresize=!0,scroll_pos=_(),e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){c(),g()}),a.keyboard_shortcuts&&e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(t){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(t.keyCode){case 37:e.prettyPhoto.changePage("previous"),t.preventDefault();break;case 39:e.prettyPhoto.changePage("next"),t.preventDefault();break;case 27:settings.modal||e.prettyPhoto.close(),t.preventDefault()}}),e.prettyPhoto.initialize=function(){return settings=a,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=e(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=galleryRegExp.exec(theRel)?!0:!1,pp_images=isSet?jQuery.map(x,function(t){return-1!=e(t).attr(settings.hook).indexOf(theRel)?e(t).attr("href"):void 0}):e.makeArray(e(this).attr("href")),pp_titles=isSet?jQuery.map(x,function(t){return-1!=e(t).attr(settings.hook).indexOf(theRel)?e(t).find("img").attr("alt")?e(t).find("img").attr("alt"):"":void 0}):e.makeArray(e(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(x,function(t){return-1!=e(t).attr(settings.hook).indexOf(theRel)?e(t).attr("title")?e(t).attr("title"):"":void 0}):e.makeArray(e(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(e(this).attr("href"),pp_images),rel_index=isSet?set_position:e("a["+settings.hook+"^='"+theRel+"']").index(e(this)),u(this),settings.allow_resize&&e(window).bind("scroll.prettyphoto",function(){c()}),e.prettyPhoto.open(),!1},e.prettyPhoto.open=function(t){return"undefined"==typeof settings&&(settings=a,pp_images=e.makeArray(arguments[0]),pp_titles=e.makeArray(arguments[1]?arguments[1]:""),pp_descriptions=e.makeArray(arguments[2]?arguments[2]:""),isSet=pp_images.length>1?!0:!1,set_position=arguments[3]?arguments[3]:0,u(t.target)),settings.hideflash&&e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),r(e(pp_images).size()),e(".pp_loaderIcon").show(),settings.deeplinking&&i(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+e(pp_images).size()),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(o("width",pp_images[set_position]))?o("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(o("height",pp_images[set_position]))?o("height",pp_images[set_position]):settings.default_height.toString(),$=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(e(window).height()*parseFloat(movie_height)/100-150),$=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(e(window).width()*parseFloat(movie_width)/100-150),$=!0),$pp_pic_holder.fadeIn(function(){switch($ppt.html(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?unescape(pp_titles[set_position]):" "),imgPreloader="",skipInjection=!1,h(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="http://www.youtube.com/embed/"+movie_id,movie+=o("rel",pp_images[set_position])?"?rel="+o("rel",pp_images[set_position]):"?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":f=l(movie_width,movie_height),movie_id=pp_images[set_position];var t=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,i=movie_id.match(t);movie="http://player.vimeo.com/video/"+i[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=f.width+"/embed/?moog_width="+f.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,f.height).replace(/{path}/g,movie);break;case"quicktime":f=l(movie_width,movie_height),f.height+=15,f.contentHeight+=15,f.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":f=l(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":f=l(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,f.width).replace(/{height}/g,f.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,f=l(movie_width,movie_height),doresize=!0,skipInjection=!0,e.get(pp_images[set_position],function(e){toInject=settings.inline_markup.replace(/{content}/g,e),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,s()});break;case"custom":f=l(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=e(pp_images[set_position]).clone().append('
').css({width:settings.default_width}).wrapInner('').appendTo(e("body")).show(),doresize=!1,f=l(e(myClone).width(),e(myClone).height()),doresize=!0,e(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,s())}),!1},e.prettyPhoto.changePage=function(t){currentGalleryPage=0,"previous"==t?(set_position--,set_position<0&&(set_position=e(pp_images).size()-1)):"next"==t?(set_position++,set_position>e(pp_images).size()-1&&(set_position=0)):set_position=t,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&e(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),n(function(){e.prettyPhoto.open()})},e.prettyPhoto.changeGalleryPage=function(e){"next"==e?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==e?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=e,slide_speed="next"==e||"previous"==e?settings.animation_speed:0,slide_to=currentGalleryPage*itemsPerPage*itemWidth,$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},e.prettyPhoto.startSlideshow=function(){"undefined"==typeof P?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return e.prettyPhoto.stopSlideshow(),!1}),P=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)):e.prettyPhoto.changePage("next")},e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return e.prettyPhoto.startSlideshow(),!1}),clearInterval(P),P=void 0},e.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(e.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),e(this).remove(),e(window).unbind("scroll.prettyphoto"),p(),settings.callback(),doresize=!0,v=!1,delete settings}))},!pp_alreadyInitialized&&t()&&(pp_alreadyInitialized=!0,hashIndex=t(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){e("a["+a.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1;
function vc_js(){
vc_twitterBehaviour();
vc_googleplus();
vc_pinterest();
jQuery(document).trigger('vc_js');
}
jQuery(document).ready(function($){
});
jQuery(document).ready(function ($){
window.vc_js();
"use strict";
function mycarousel4_initCallback(e){e.buttonNext.hover(function(){e.stopAuto()},function(){e.startAuto()});e.buttonPrev.hover(function(){e.stopAuto()},function(){e.startAuto()});e.clip.hover(function(){e.stopAuto()},function(){e.startAuto()})};
jQuery.browser={};(function(){jQuery.browser.msie=false;
jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)\./)){
jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})();
$('.top-lang').topLang();
$(".post_inner_content").fitVids();
if($(".paralax_bg")[0]){
$('.paralax_bg').parallax("50%", 0.5);
}
if($(".row_player")[0]){
$(".row_player").mb_YTPlayer();
}
if($(".HTML5video")[0]){
jQuery('.HTML5video').each(function(){
var this_element=jQuery(this);
var vidopacity=this_element.attr('data-opacity');
this_element.fadeTo(0, vidopacity);
});
}
jQuery(".tabber-widget").each(function(){
var ul=jQuery(this).find("ul.tabs");
jQuery(this).find("li.st-tab").each(function(){
var widget=jQuery(this).attr("id");
jQuery(this).find('a.tab').attr("href", "#" + widget).wrap('').parent().detach().appendTo(ul);
});
});
if($(".service-one")[0]){
$('.section_row').each(function(){
if($('.service-one', this).html()!=undefined){
$(this).addClass('services');
}});
}
$('.side-nav li').each(function(){
if($(this).find('> .children').length >=1){
$(this).find('> a').append('');
}});
$('.side-nav .current_page_item').each(function(){
if($(this).find('.children').length >=1){
$(this).find('.children').slideDown('slow');
}});
$('.side-nav .current_page_item').each(function(){
if($(this).parent().hasClass('side-nav')){
$(this).find('ul').slideDown('slow');
}
if($(this).parent().hasClass('children')){
$(this).parents('ul').slideDown('slow');
}});
$('.side-nav li').hoverIntent({
over: function(){
if($(this).find('> .children').length >=1){
$(this).find('> .children').stop(true, true).slideDown('slow');
}},
out: function(){
if($(this).find('.current_page_item').length==0&&jQuery(this).hasClass('current_page_item')==false){
$(this).find('.children').stop(true, true).slideUp('slow');
}},
timeout: 500
});
if($(".sf-menu")[0]){
$('.sf-menu').superfish({
delay: 0,
speed: 'fast',
});
$('.sf-menu li li a').prepend('');
$('.sf-menu li li .sf-sub-indicator i').removeClass('fa-chevron-down').addClass('fa-chevron-right');
}
$(document).click(function(){
$('.search-pop-form').hide();
});
$('.search-pop-form').click(function(e){
e.stopPropagation();
});
$('.search-pop-button').click(function(e){
e.stopPropagation();
if($('.search-pop-form').css('display')=='block'){
$('.search-pop-form').hide();
}else{
$('.search-pop-form').show();
}});
var tabs=jQuery('ul.tabs');
tabs.each(function (i){
jQuery(".tabs-content li:first-child, .tabs li:first-child a").addClass("active");
var tab=jQuery(this).find('> li > a');
tab.click(function (e){
var contentLocation=jQuery(this).attr('href');
if(contentLocation.charAt(0)==="#"){
e.preventDefault();
tab.removeClass('active');
jQuery(this).addClass('active');
jQuery(contentLocation).fadeIn(500).addClass('active').siblings().hide().removeClass('active');
if(0 < jQuery(contentLocation).find('.grid_layout').length){
jQuery(contentLocation).find('.grid_layout').isotope("layout");
}}
});
});
jQuery("ul.tt-accordion li").each(function (){
if(jQuery(this).index() > 0){
jQuery(this).children(".accordion-content").css('display', 'none');
}else{
if($(".faq")[0]){
jQuery(this).addClass('active').find(".accordion-head-sign").append("");
jQuery(this).siblings("li").find(".accordion-head-sign").append("");
}else{
jQuery(this).addClass('active').find(".accordion-head-sign").append("");
jQuery(this).siblings("li").find(".accordion-head-sign").append("");
}}
jQuery(this).children(".accordion-head").bind("click", function (){
jQuery(this).parent().addClass(function (){
if(jQuery(this).hasClass("active")){
return;
} {
return "active";
}});
if($(".faq")[0]){
jQuery(this).siblings(".accordion-content").slideDown();
jQuery(this).parent().find(".accordion-head-sign i").addClass("fa-chevron-up").removeClass("fa-chevron-down");
jQuery(this).parent().siblings("li").children(".accordion-content").slideUp();
jQuery(this).parent().siblings("li").removeClass("active");
jQuery(this).parent().siblings("li").find(".accordion-head-sign i").removeClass("fa-chevron-up").addClass("fa-chevron-down");
}else{
jQuery(this).siblings(".accordion-content").slideDown();
jQuery(this).parent().find(".accordion-head-sign i").addClass("fa-chevron-up").removeClass("fa-chevron-down");
jQuery(this).parent().siblings("li").children(".accordion-content").slideUp();
jQuery(this).parent().siblings("li").removeClass("active");
jQuery(this).parent().siblings("li").find(".accordion-head-sign i").removeClass("fa-chevron-up").addClass("fa-chevron-down");
}
if(0 < jQuery(this).parent().find('.grid_layout').length){
jQuery(this).parent().find('.grid_layout').isotope("layout");
}});
});
jQuery(".toggle").each(function (){
jQuery(this).children(".toggle-content").css('display', 'none');
jQuery(this).find(".toggle-head-sign").html("");
jQuery(this).children(".toggle-head").bind("click", function (){
if(jQuery(this).parent().hasClass("active")){
jQuery(this).parent().removeClass("active");
}else{
jQuery(this).parent().addClass("active");
}
jQuery(this).find(".toggle-head-sign").html(function (){
if(jQuery(this).parent().parent().hasClass("active")){
return "";
}else{
return "";
}});
jQuery(this).siblings(".toggle-content").slideToggle();
});
});
jQuery(".toggle").find(".toggle-content.active").siblings(".toggle-head").trigger('click');
$("#header nav").before('
');
$("#header .sf-menu a.sf-with-ul").before('
');
$('.subarrow').click(function (){
$(this).parent().toggleClass("xpopdrop");
});
$('#mobilepro').click(function (){
$('#header .sf-menu').slideToggle('slow', 'easeInOutExpo').toggleClass("xactive");
$("#mobilepro i").toggleClass("fa-bars");
});
$("body").click(function(){
$('#header .xactive').slideUp('slow', 'easeInOutExpo').removeClass("xactive");
$("#mobilepro i").addClass("fa-bars");
});
$('#mobilepro, .sf-menu').click(function(e){
e.stopPropagation();
});
function checkWindowSize(){
if($(window).width() >=959){
$('#header .sf-menu').css('display', 'block').removeClass("xactive");
}else{
$('#header .sf-menu').css('display', 'none');
}}
$(window).load(checkWindowSize);
$(window).resize(checkWindowSize);
jQuery('#toTop').click(function (){
jQuery('body,html').animate({
scrollTop: 0
}, 1000);
});
$(".notification-close").click(function (){
$(this).parent().slideUp("slow");
return false;
});
if($(".rd_carousel")[0]){
jQuery('.rd_carousel').each(function(){
var this_element=jQuery(this);
var grid=parseInt(this_element.attr('data-grid')),
tablet=parseInt(this_element.attr('data-tablet')),
tabletsmall=parseInt(this_element.attr('data-tabletsmall')),
mobile=parseInt(this_element.attr('data-mobile')),
mobilesmall=parseInt(this_element.attr('data-mobilesmall')),
auto=parseInt(this_element.attr('data-auto'))*1000,
nav=this_element.attr('data-navigation');
var navi=false;
if(nav=='yes'){navi=true;}
if(auto==0){auto=false;}
this_element.owlCarousel({
itemsCustom:[
[100, mobilesmall],
[480, mobile],
[768, tabletsmall],
[959, tablet],
[1177, grid]
],
autoPlay:auto,
singleItem:false,
itemsScaleUp:false,
stopOnHover:true,
navigation:navi,
navigationText:['',''],
rewindNav:true,
scrollPerPage:false,
responsive: true,
responsiveRefreshRate:200,
responsiveBaseWidth: window,
pagination:false,
paginationNumbers: false,
});
});
}
if($(".rd_slides")[0]){
jQuery('.rd_slides').each(function(){
var this_element=jQuery(this);
var auto=parseInt(this_element.attr('data-auto'))*1000,
nav=this_element.attr('data-navigation'),
pag=this_element.attr('data-pagination');
var navi=false;
if(nav=='yes'){navi=true;}else{navi=false;}
if(pag=='yes'){pag=true;}else{pag=false;}
if(auto==0){auto=false;}
this_element.owlCarousel({
autoPlay:auto,
singleItem:true,
slideSpeed:800,
stopOnHover:true,
navigation:navi,
navigationText:['',''],
rewindNav:true,
scrollPerPage:false,
pagination:pag,
paginationNumbers: false,
});
});
}
if($(".rd_slides_thumb")[0]){
jQuery('.rd_slides_thumb').each(function(){
var this_element=jQuery(this);
var grid=parseInt(this_element.attr('data-grid')),
tablet=parseInt(this_element.attr('data-tablet')),
tabletsmall=parseInt(this_element.attr('data-tabletsmall')),
mobile=parseInt(this_element.attr('data-mobile')),
mobilesmall=parseInt(this_element.attr('data-mobilesmall')),
auto=parseInt(this_element.attr('data-auto'))*1000,
nav=this_element.attr('data-navigation');
var navi=false;
if(nav=='yes'){navi=true;}
if(auto==0){auto=false;}
var slidexthumbxId=this_element.closest(".rd_slides_thumb").attr("id");
var slidexId="#slidex" + slidexthumbxId;
var thumbxId="#thumbx" + slidexthumbxId;
jQuery(slidexId).owlCarousel({
autoPlay:auto,
stopOnHover:true,
singleItem:true,
slideSpeed:800,
afterAction:syncPosition,
responsiveRefreshRate:200,
navigation:navi,
navigationText:['',''],
rewindNav:true,
scrollPerPage:false,
pagination:false,
paginationNumbers: false,
});
jQuery(thumbxId).owlCarousel({
itemsCustom:[
[100, mobilesmall],
[480, mobile],
[768, tabletsmall],
[959, tablet],
[1177, grid]
],
pagination:false,
responsiveRefreshRate:100,
afterInit:function(el){
el.find(".owl-item").eq(0).addClass("synced");
}});
function syncPosition(el){
var current=this.currentItem;
$(thumbxId)
.find(".owl-item")
.removeClass("synced")
.eq(current)
.addClass("synced")
if($(thumbxId).data("owlCarousel")!==undefined){
center(current)
}}
$(thumbxId).on("click", ".owl-item", function(e){
e.preventDefault();
var number=$(this).data("owlItem");
$(slidexId).trigger("owl.goTo",number);
});
function center(number){
var sync2visible=$(thumbxId).data("owlCarousel").owl.visibleItems;
var num=number;
var found=false;
for(var i in sync2visible){
if(num===sync2visible[i]){
var found=true;
}}
if(found===false){
if(num>sync2visible[sync2visible.length-1]){
$(thumbxId).trigger("owl.goTo", num - sync2visible.length+2)
}else{
if(num - 1===-1){
num=0;
}
$(thumbxId).trigger("owl.goTo", num);
}}else if(num===sync2visible[sync2visible.length-1]){
$(thumbxId).trigger("owl.goTo", sync2visible[1])
}else if(num===sync2visible[0]){
$(thumbxId).trigger("owl.goTo", num-1)
}}
});
}
if($("#map")[0]){
jQuery('#map').each(function(){
var this_element=jQuery(this);
var mapLatitude=this_element.attr('data-latitude'),
mapLongitude=this_element.attr('data-longitude'),
mapZoom=parseInt(this_element.attr('data-zoom')),
mapHeight=parseInt(this_element.attr('data-height'));
this_element.height(mapHeight).gmap3({
marker:{latLng: [mapLatitude, mapLongitude]},
map:{options:{zoom: mapZoom, scrollwheel: false}}});
});
}
if($("a[data-gal^='lightbox']")[0]){
$("a[data-gal^='lightbox']").prettyPhoto({
animation_speed: 'normal',
theme: 'dark_rounded',
autoplay_slideshow: false,
overlay_gallery: true,
show_title: true,
deeplinking: false
});
}
if($(".image_grid")[0]){
jQuery('.image_grid').each(function(index){
var this_element=jQuery(this);
var isotope=this_element.find('.image_grid_ul');
jQuery(window).load(function(){
isotope.isotope("layout");
isotope.isotope({
itemSelector:'.isotope-item',
layoutMode:'fitRows'
});
});
});
}
if($(".wpb_teaser_grid")[0]){
var layout_modes={
fitrows: 'fitRows',
masonry: 'masonry'
}
jQuery('.wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)').each(function(){
var $container=jQuery(this);
var $thumbs=$container.find('.wpb_thumbnails');
var layout_mode=$thumbs.attr('data-layout-mode');
$thumbs.isotope({
itemSelector:'.isotope-item',
layoutMode:(layout_modes[layout_mode]==undefined ? 'fitRows':layout_modes[layout_mode])
});
$container.find('.categories_filter a').data('isotope', $thumbs).click(function(e){
e.preventDefault();
var $thumbs=jQuery(this).data('isotope');
jQuery(this).parent().parent().find('.active').removeClass('active');
jQuery(this).parent().addClass('active');
$thumbs.isotope({filter: jQuery(this).attr('data-filter')});
});
jQuery(window).bind('load resize', function(){
$thumbs.isotope("layout");
});
});
}
if($(".grids_wrap")[0]){
var layout_modes={
fitrows: 'fitRows',
masonry: 'masonry'
}
jQuery('.grids_wrap').each(function(){
var $container=jQuery(this);
var $thumbs=$container.find('.grid_layout');
var layout_mode=$thumbs.attr('data-layout-mode');
$thumbs.isotope({
itemSelector:'.grid_item',
layoutMode:(layout_modes[layout_mode]==undefined ? 'fitRows':layout_modes[layout_mode]),
});
$container.find('.categories_filter a').data('isotope', $thumbs).click(function(e){
e.preventDefault();
var $thumbs=jQuery(this).data('isotope');
jQuery(this).parent().parent().find('.active').removeClass('active');
jQuery(this).parent().addClass('active');
$thumbs.isotope({filter: jQuery(this).attr('data-filter')});
});
jQuery(window).bind('load resize', function(){
$thumbs.isotope("layout");
});
});
}
$('.toptip').tipsy({fade: true,gravity: 's'});
$('.bottomtip').tipsy({fade: true,gravity: 'n'});
$('.righttip').tipsy({fade: true,gravity: 'w'});
$('.lefttip').tipsy({fade: true,gravity: 'e'});
var isDesktop=(function(){
return !('ontouchstart' in window)
|| !('onmsgesturechange' in window);
})();
var window_width=$(window).width();
window.isDesktop=isDesktop;
if(isDesktop&&window_width >=959){
if($(".animated")[0]){
jQuery('.animated').css('opacity', '0');
}
jQuery('.animt').each(function (){
var $curr=jQuery(this);
var $currOffset=$curr.attr('data-gen-offset');
if($currOffset===''||$currOffset==='undefined'||$currOffset===undefined){
$currOffset='bottom-in-view';
}
$curr.waypoint(function (){
$curr.trigger('animt');
}, {
triggerOnce: true,
offset: $currOffset
});
});
jQuery('.animated').each(function (){
var $curr=jQuery(this);
$curr.bind('animt', function (){
$curr.css('opacity', '');
$curr.addClass($curr.data('gen'));
});
});
jQuery('.animated').each(function (){
var $curr=jQuery(this);
var $currOffset=$curr.attr('data-gen-offset');
if($currOffset===''||$currOffset==='undefined'||$currOffset===undefined){
$currOffset='bottom-in-view';
}
$curr.waypoint(function (){
$curr.trigger('animt');
}, {
triggerOnce: true,
offset: $currOffset
});
});
}
if($(".progress-bar > span")[0]){
$('.progress-bar > span').waypoint(function(){
$(this).each(function(){
$(this).animate({
width: $(this).attr('rel') + "%"
}, 800);
});
}, {
triggerOnce: true,
offset: 'bottom-in-view'
});
}
if($(".counter .display-value")[0]){
$('.counter').waypoint(function(){
$(this).find('.display-value').each(function(){
var length=$(this).data('to');
$(this).countTo({from: 0, to: length, speed: 1200});
});
}, {
triggerOnce: true,
offset: 'bottom-in-view'
});
}
if($(".my_sticky")[0]){
$('.my_sticky').before('');
$(window).scroll(function(){
var wind_scr=$(window).scrollTop();
var window_width=$(window).width();
var head_w=$('.my_sticky').height();
if(window_width >=959){
if(wind_scr < 150){
if($('.my_sticky').data('sticky')===true){
$('.my_sticky').data('sticky', false);
$('.my_sticky').stop(true).animate({opacity:0}, 300, function(){
$('.my_sticky').removeClass('sticky');
$('.my_sticky').stop(true).animate({opacity:1}, 300);
$('.Corpse_Sticky').css('padding-top', '').css('border-bottom', '0').css('border-top', '0');
});
}}else{
if($('.my_sticky').data('sticky')===false||typeof $('.my_sticky').data('sticky')==='undefined'){
$('.my_sticky').data('sticky', true);
$('.my_sticky').stop(true).animate({opacity:0},300,function(){
$('.my_sticky').addClass('sticky');
$('.my_sticky.sticky').stop(true).animate({opacity:1}, 300);
$('.Corpse_Sticky').css('padding-top', head_w + 'px').css('border-bottom', '8px solid #F5F5F5').css('border-top', '4px solid #F5F5F5');
});
}}
}});
$(window).resize(function(){
var window_width=$(window).width();
if(window_width <=959){
if($('.my_sticky').hasClass('sticky')){
$('.my_sticky').removeClass('sticky');
$('.my_sticky').stop(true).animate({opacity:0}, 300, function(){
$('.my_sticky').removeClass('sticky');
$('.my_sticky').stop(true).animate({opacity:1}, 300);
$('.Corpse_Sticky').css('padding-top', '');
});
}}
});
}
if($(".OneNav")[0]){
$('body').plusAnchor({
easing: 'easeInOutExpo',
speed: 1000
});
$('.OneNav li').click(function(){
$('.OneNav li.current').removeClass('current');
$(this).addClass('current');
});
$(window).scroll(function(){
var lastId,
topMenu=$(".OneNav"),
topMenuHeight=topMenu.outerHeight()+15,
menuItems=topMenu.find("a"),
scrollItems=menuItems.map(function(){
var item=$($(this).attr("href"));
if(item.length){ return item; }});
var fromTop=$(this).scrollTop()+topMenuHeight;
var cur=scrollItems.map(function(){
if($(this).offset().top < fromTop)
return this;
});
cur=cur[cur.length-1];
var id=cur&&cur.length ? cur[0].id:"";
if(lastId!==id){
lastId=id;
menuItems
.parent().removeClass("current")
.end().filter("[href=#"+id+"]").parent().addClass("current");
}});
}
$('a.add_to_cart_button').click(function(e){
var link=this;
$(link).closest('.product').find('.add_to_cart_button').fadeOut();
$(link).closest('.product').find('.cart-loading').find('i').removeClass('fa-check').addClass('fa fa-spinner fa-spin');
$(this).closest('.product').find('.cart-loading').fadeIn();
setTimeout(function(){
$(link).closest('.product').find('.product_img').animate({opacity: 0.75});
$(link).closest('.product').find('.cart-loading').find('i').hide().removeClass('fa fa-spinner fa-spin').addClass('fa-check').fadeIn();
$(link).closest('.product').find('.add_to_cart_button').find('i').removeClass('fa-shopping-cart');
setTimeout(function(){
$(link).closest('.product').find('.cart-loading').fadeOut().closest('.product').find('.product_img').animate({opacity: 1});;
}, 1000);
}, 1000);
});
$('li.product').mouseenter(function(){
if($(this).find('.cart-loading').find('i').hasClass('fa-check')){
$(this).find('.cart-loading').fadeIn();
}}).mouseleave(function(){
if($(this).find('.cart-loading').find('i').hasClass('fa-check')){
$(this).find('.cart-loading').fadeOut();
}});
$('.product_image').mouseenter(function(){
if($(this).find('.add_to_cart_button').find('i').hasClass('fa-shopping-cart')){
$(this).find('.add_to_cart_button').fadeIn();
}}).mouseleave(function(){
if($(this).find('.add_to_cart_button').find('i').hasClass('fa-shopping-cart')){
$(this).find('.add_to_cart_button').fadeOut();
}});
});
if('function'!==typeof(window[ 'vc_twitterBehaviour' ])){
window.vc_twitterBehaviour=function (){
jQuery('.wpb_twitter_widget .tweets').each(function(index){
var this_element=jQuery(this),
tw_name=this_element.attr('data-tw_name'),
tw_count=this_element.attr('data-tw_count');
this_element.tweet({
username: tw_name,
join_text: "auto",
avatar_size: 0,
count: tw_count,
template: "{avatar}{join}{text}{time}",
auto_join_text_default: "",
auto_join_text_ed: "",
auto_join_text_ing: "",
auto_join_text_reply: "",
auto_join_text_url: "",
loading_text: ''
});
});
};}
if('function'!==typeof(window[ 'vc_googleplus' ])){
window.vc_googleplus=function (){
if(0 < jQuery('.wpb_googleplus').length){
(function (){
var po=document.createElement('script');
po.type='text/javascript';
po.async=true;
po.src='https://apis.google.com/js/plusone.js';
var s=document.getElementsByTagName('script')[ 0 ];
s.parentNode.insertBefore(po, s);
})();
}}
}
if('function'!==typeof(window[ 'vc_pinterest' ])){
window.vc_pinterest=function (){
if(0 < jQuery('.wpb_pinterest').length){
(function (){
var po=document.createElement('script');
po.type='text/javascript';
po.async=true;
po.src='http://assets.pinterest.com/js/pinit.js';
var s=document.getElementsByTagName('script')[ 0 ];
s.parentNode.insertBefore(po, s);
})();
}}
};
!function(d,l){"use strict";var e=!1,o=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){var r,a,i,s,n,o=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),c=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]');for(r=0;r=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||c)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this);